package service

import (
	"awesomeTask/system/kernel"
)

var RegisterService []interface{} = make([]interface{}, 0)

type Service interface {
	Register()
	Boot()
}

func Init() {
	//flag.Parse()
	service := AppService{}
	service.Register()

	for _, service := range RegisterService {
		instance := kernel.GetIocInstance()
		instance.CallFunByName(service, "Register")
	}
}
